import { defineConfig } from "vite";
import react from "@vitejs/plugin-react-swc";
import { join } from "path";

// https://vite.dev/config/
export default defineConfig({
  plugins: [react()],
  server: {
    // open: true,
  },
  css: {
    modules: {
      localsConvention: "camelCaseOnly",
    },
  },
  resolve: {
    alias: {
      "@": join(__dirname, "./src"), // 配置 @ 指向 src 目录
    },
  },
});
